<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>关闭广告</title>
    <style>
        div {
            margin-left: 30%;
            margin-top: 30px;
        }
        
        span {
            float: left;
            border: 2px solid rgb(190, 189, 189);
            padding: 4px 6px;
            font-size: 10px;
            color: rgb(250, 100, 0);
            font-weight: 900;
        }
        
        img {
            float: left;
            width: 100px;
            height: 120px;
            border: 2px solid rgb(190, 189, 189);
            margin-left: -2px;
        }
    </style>
</head>

<body>
    <div>
        <span>×</span>
        <img src="image/6-5-1.png">
    </div>

    <script>
        var span = document.querySelector('span')
        span.onclick = function() {
            document.querySelector('img').style.display = 'none'
            span.style.display = 'none'
        }
    </script>
</body>

</html>